package com.example.leetcode;

import java.util.*;

public class HW15 {
    public static void main(String[] args) {
        String s ="asdfasdfoobc";
        TreeMap<String,Integer> map=new TreeMap<>();
        char[] chars = s.toCharArray();
        for (int i=0;i<chars.length;i++){
            if (map.containsKey(String.valueOf(chars[i]))){
                map.remove(String.valueOf(chars[i]));
            }else {
                map.put(String.valueOf(chars[i]),1);
            }
        }
     List<Map.Entry<String,Integer>> maps = new ArrayList<>(map.entrySet());
        System.out.println(maps.get(0).getKey());
        String s1="12B";
        for (int j=s1.length();j>0;j--){
            System.out.println(Character.isLetter(s1.charAt(j-1)));
        }

    }
}
